<!DOCTYPE html>
<html lang="cn">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>大连华盛科技有限公司</title>
		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
		<script type="text/javascript">
			window.$ = window.jQuery = require('./assets/js/jquery.js');
		</script>
		<script src="./js/jquery.window.reference.js"></script>
		<link rel="stylesheet" type="text/css" href="./js/tabs/bootstrap.addtabs.css" />
	</head>

	<body class="no-skin" style="overflow:hidden;">
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<div id="sidebar" class="sidebar h-sidebar navbar-collapse" style="z-index:1000;margin-top: 0px;border-bottom: 2px solid #79b0ce !important;"></div>
			<div id='indexMenuContent'>
				<ul class="nav nav-tabs" role="tablist"></ul>
				<div class="tab-content"></div>
			</div>
		</div>
        <script>
            var hotelId = localStorage.getItem("hotelId");
            var bmh = localStorage.getItem("bmh");
            var userid = localStorage.getItem("userid");
            var token = localStorage.getItem("token");
            $.HSAPI_HEADERS.hotelId = hotelId;
            $.HSAPI_HEADERS.bmh = bmh;
            $.HSAPI_HEADERS.token = token;
			$.HSAPI_USERID = userid;
			localStorage.removeItem('openWin');
			
			jQuery.ajaxSetup({
				headers : $.HSAPI_HEADERS,
			});
			var arg1 = {"arg":{"app":$.HSAPI_HEADERS.app}}
			var arg2 = {};
			var procedure = 'HoLoginMenu';
			$.HSAPI_CALLPROCEDURE2(arg1,procedure,arg2,function(data){
				localStorage.setItem("opdate",data.opdate);
				localStorage.setItem("lastdate",data.lastdate);
				localStorage.setItem("qckMenu",JSON.stringify(data.menu));
				localStorage.setItem(localStorage.getItem("hotelId")+"_opdate",data.opdate);
				if(data.RETURN==1){
					$("#sidebar").indexMenu({
						app : $.HSAPI_HEADERS.app,
						appendDivId:"sidebar",
						menu:data.menu,
						indexOff_href : "html/login/login.html",
						homepage_href : "spaindex.html",
						//----------新增菜单插件模式->打开新窗口模式--------
						mode:"newWindow",//不加此参数为单窗体加载页面模式
						newWindow:function(params){
							$.HSAPI_NEWWINDOW(params,params.hash);
							$.HSAPI_WINDOWOPEN();
						}
						//------------------结束---------------------------
					});

					jQuery.ajax({  
						type : 'POST',
						url : $.HSAPI_AJAXURL+"/qms/mobile/procedure2",   
						data : $.HSAPI_ASKJSONINFO('{}',"ListRetrieveAlinarg",'{}','list'),
						dataType : 'json',  
						async:false,
						success : function(data) {  
							sessionStorage.setItem("alinarg",JSON.stringify(data.DATA));        	  
						},  
						error : function(data) {  
							$.HSAPI_ALTER("获取酒店ID:"+jf_getHotelId()+"的参数失败<br>原因:"+data);
						}  
					});
				}
			},function(data){
				$.HSAPI_ALTER(JSON.stringify(data));
			});
		</script>
	</body>
</html>
